package com.qf.feign;

import com.qf.vo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 你的名字
 * @Date: 2021/07/20/20:34
 * @Description:
 */
@FeignClient(name ="address",path = "/address")
public interface AddressService {
    @RequestMapping("getAddressListByUid")
    List <Address> getAddressListByUid(@RequestParam(value = "uid") Integer uid);

    @RequestMapping("/info/{id}")
    Address info(@PathVariable("id") Integer id);
}
